//
// Created by alexa on 5/2/2024.
//

#include "Missile.h"

Missile::Missile(std::string name, int calibre, float length, float weight, float flightRange, float impactArea, float speed) :
        name(name),
        calibre(calibre),
        length(length),
        weight(weight),
        flightRange(flightRange),
        impactArea(impactArea), speed(speed) {}


const std::string &Missile::getName() const {
    return name;
}

float Missile::getWeight() const {
    return weight;
}

void Missile::setWeight(float weight) {
    this->weight = weight;
}

int Missile::getLength() const {
    return length;
}

void Missile::setLength(int length) {
    this->length = length;
}

int Missile::getCalibre() const {
    return calibre;
}

void Missile::setCalibre(int calibre) {
    this->calibre = calibre;
}

float Missile::getImpactArea() const {
    return impactArea;
}

void Missile::setImpactArea(float impactArea) {
    this->impactArea = impactArea;
}

float Missile::getFlightRange() const {
    return flightRange;
}

void Missile::setFlightRange(float flightRange) {
    this->flightRange = flightRange;
}

float Missile::getSpeed() const {
    return speed;
}

void Missile::setSpeed(float speed) {
    this->speed = speed;
}
